﻿using Core.DomainServices;
using Infrastructure.DomainServices;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EIConsole
{
    /// <summary>
    /// This is a sample Export Invoices to Word 2007 files from excel data source 
    /// using DocumentFormat.OpenXml.2.5 library.
    /// If you have any questions let me know, my email: bin.nguyen.van@gmail.com
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            IAppConfig appConfig = new AppConfig();
            IList<string> files = new ExportDocument(appConfig).Export(appConfig.OutputFolder);
            new DocumentConversion(appConfig).ConvertTo(files);

            Console.WriteLine("===========DONE===========");
            Console.WriteLine("Output Data Folder =>" + appConfig.OutputFolder);
            Console.ReadLine();
        }
    }
}
